home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-06-15 | 1.3 KB | 43 lines | [TEXT/MPS ] |
- INCLUDE 'Traps.a'
- INCLUDE 'SysEqu.a'
- INCLUDE 'SysErr.a'
- INCLUDE 'FSEqu.a'
- INCLUDE 'QuickEqu.a'
-
- DeanHack MAIN
-
- ; This is a very quick and dirty FKEY for triggering Dean’s NetBunny hack.
-
- move.l A2, -(SP) ; we’ll be using this
- move.l uTableBase, A0 ; point to unit table
- moveq #0, D0 ; start with entry 0
- moveq #0, D2 ; start with entry 0
- @unitLoop
- move.l 0(A0, D0), D1 ; handle to DCE
- bz.s @tryNextDCE ; if Nil, don't use
- move.l D1, A1
- move.l (A1), A1 ; A1 has DCE Pointer
- move.l (A1), A2 ; Ptr or Handle to driver
- move.b dCtlFlags+1(A1), D1 ; get flags byte
- btst #dRamBased, D1 ; test to see if RAM based
- bz.s @tryNextDCE ; must be RAM based for us
- move.l (A2), A2 ; Ptr to driver in RAM
- cmp.l #$092E4E65, drvrName(A2) ; check 9'.Ne'
- bne.s @tryNextDCE ; if no match, abort
- cmp.l #$7442756E, drvrName+4(A2) ; check 'tBun'
- bne.s @tryNextDCE ; if no match, abort
- move.l dCtlStorage(A1), A2 ; handle to storage
- move.l (A2), A2 ; pointer to storage
- move.l $14(A2), A2 ; pointer to something else
- clr.w $12(A2) ; set Dean’s flag. hee hee
- bra.s @allDone ; we’re outa here
- @tryNextDCE
- addq.w #4, D0 ; increment DCE index
- addq.w #1, D2 ; increment count
- cmp.w UnitNtryCnt, D2 ; are we done?
- blt.s @unitLoop ; if more, try next DCE
- @allDone
- move.l (SP)+, A2 ; restore trashed register
- rts
-
- END